'use strict';

const { Controller } = require('egg');

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.model.Article.create({
      wid:'xxxx'
    },(res)=>{
       console.log(res);
    });
    ctx.body = 'hi, egg';
  }

  async save() {
    const { ctx } = this;
    console.log(ctx.decode);
    ctx.body = ctx.decode;
  }
}

module.exports = HomeController;
